<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<jsp:include page="../frame/header.jsp"></jsp:include>

<title>查看二手求购</title>
<style>
div.in-line{
	margin-top:5px;
}
div.in-line label{
	width:100px;
	text-align:right;
}
.center{
	text-align:center !important;
}
.right{
	text-align:right !important;
}
</style>
</head>

<body>

	<div class="container-fluid">
		<div id="market" class="row-fluid">
			<div>
				<ul class="breadcrumb">
					<li><a href="#">实用功能</a> <span class="divider">/</span></li>
					<li><a href="#">求租</a></li>
				</ul>
			</div>

			<div class="box">
				<div class="box-header well" data-original-title>
					<h2>
						<i class="icon-th"></i> 求租信息查看
					</h2>

					<div class="box-icon">
						<a href="#" class="btn btn-setting btn-round"><i
							class="icon-cog"></i></a> <a href="#"
							class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
						<a href="#" class="btn btn-close btn-round"><i
							class="icon-remove"></i></a>
					</div>
				</div>
				<div class="box-content">
					<table id="infos" class="table table-striped">
						<tr>
							<td class="center" colspan=6><font style="font-size:16px;font-weight:bold;">${rent.title }</font></td>
						</tr>
						<tr>
							<td class="right">求租方式：</td>
							<td>${rent.rentType == 1 ? "整租" :(rent.rentType == 2 ? "合租" : "短租/日租") }</td>
							<td class="right">房屋类型：</td>
							<td>${rent.houseType == 1 ? "House":(rent.houseType == 2 ?"Apartment":"学生宿舍") }</td>
							<td class="right">户型：</td>
							<%-- <td>${rent.roomSize }室&nbsp;&nbsp; ${rent.hallSize }厅&nbsp;&nbsp;${rent.bathroomSize }卫</td> --%>
							<td>${rent.apartmentLayout }</td>
						</tr>
						<tr>
							<td colspan=6 style="padding-left:100px;">
								理想位置：
							</td>
						</tr>
						<tr>
							<td colspan=6 style="padding-left:100px;">
								${rent.address }
							</td>
						</tr>
						<tr>
							<td class="right">入住时间：</td>
							<td>${rent.inTime }</td>
							<td class="right">截止时间：</td>
							<td>${rent.outTime }</td>
							<td class="right">租期：</td>
							<td>${rent.rentTime }${rent.rentTimeType == 1 ? "年":(rent.rentTimeType == 2 ?"月":(rent.rentTimeType == 3?"周":"日")) }</td>
						</tr>
						<tr>
							<td colspan=6 style="padding-left:100px;">
								详细内容
							</td>
						</tr>
						<tr>
							<td colspan=6 style="padding-left:100px;">
								${rent.description_mc }
							</td>
						</tr>
						<tr>
							<td class="right">联系人：</td>
							<td>${secondary.linkName }</td>
							<td class="right">联系电话：</td>
							<td>${secondary.phone }</td>
							<td class="right">有效期至：</td>
							<td>${secondary.publishValidateDate }</td>
						</tr>
					</table>
					<div class="form-actions">		
						<button id="cancelBtn" type="button" class="btn">返回</button>
					</div>
				</div>
			</div>
		</div>
		<!--/fluid-row-->

	</div>
	<!--/.fluid-container-->

	<jsp:include page="../frame/scripts.jsp"></jsp:include>
	<script type="text/javascript">
	
	$(document).ready(function(){
		$('#cancelBtn').click(function(){
			window.location.href = '<c:url value="/admin/func/forRent" />';	
		})
	})
	
	
	</script>
</body>
</html>
